#ifndef CONFIGURELEDS_H
#define CONFIGURELEDS_H

#include <QWidget>
#include <LedView.h>
#include <QThread>
#include <ScreenPresentation.h>
#include <QLabel>

class TestLeds : public QThread
{
	Q_OBJECT


	bool _isRunning;
	QList<LedView*> _leds;
	ScreenPresentation* _widget;
public:
	explicit TestLeds(QObject* parent = 0);
	void stop();
    void setLeds(QList<LedView*> list, ScreenPresentation* widget);
protected:
	void run();
};

namespace Ui {
class ConfigureLeds;
}

class ConfigureLeds : public QWidget
{
	Q_OBJECT
    Q_PROPERTY(int alpha READ alpha WRITE setAlpha)

	Ui::ConfigureLeds *ui;
    QLabel* _imageLabel;
	
public:
	explicit ConfigureLeds(QWidget *parent = 0);
	~ConfigureLeds();

    int alpha();
    void setAlpha(int alpha);

public slots:
	void onVerChanged(int num);
	void onHorChanged(int num);
	void onBtnTest();
    void onDirectionChanged(int index);
    void onUpdateView();
    void onRadioBtn();
};

#endif // CONFIGURELEDS_H
